<?php
/* testa se a session esta aberta se nao estiver abre! */
if(!isset($_SESSION))
{
session_start();
}
/* se nao existir session aberta volta pra index! */
if(!isset($_SESSION['login_Se']) AND !isset($_SESSION['senha_Se'])){
	header("location:index.php");		
	exit;
}
 include 'Funcoes/conexao.php';
  $busca=ibase_query("Select * from Parametros");
  $reg= ibase_fetch_assoc($busca);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="CSS/Style.css" rel="stylesheet" type="text/css" media="all" ice:classes="*" />
<title>Automação de Restaurante</title>
</head>

<body>
<div id="body">
	<div id="topo">Automação de Restaurantes</div>
  <div id="dados">Licenciado para :<STRONG><font color="#0000CC" style="bold"> <br />
    <?php echo($reg['NOME']); ?></font>
    <br />
    </STRONG>
Garçon:
<br />
      <STRONG><font color="#0000CC" style="bold">
<?php 
      $garcon = $_SESSION['login_Se'];

      echo $garcon;
?>
</STRONG>
  </div>
    <div id="botoes">
      <div id="btesq"><a href="Modulos/Pedidos/pedidos.php?Comanda=&Codproduto=&descproduto=&obs=" ><img src="imagens/Mao_garcon.jpg" width="100" height="83" /></a>Separacao<a href="Modulos/Conta/Conta.php"><img src="imagens/garfo$.jpg" width="100" height="83" /></a></div>
      <div id="btsair"> <img src="imagens/images.jpg" width="90" height="75" />Separacao <a href="sair.php"><img src="imagens/sair.jpg" width="90" height="75" /></a></div>
    </div>
</div>
</body>
</html>
